package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-19
 * Time: 21:55
 */
class Myarray<E extends Comparable<E>>{
    E data;
    public E findMax(E[] array){
        E max=array[0];
        for(int i=1;i<array.length;i++){
            if(!(max.compareTo(array[i])>0)) {
                max = array[i];
            }
        }
        return max;
    }

}
public class Test {

}
